package cn.com.taurus.impl;

import cn.com.taurus.bean.DealRecordBean;
import cn.com.taurus.bean.DealRecordWebBean;
import cn.com.taurus.entity.DealMessage;
import cn.com.taurus.entity.DealRecord;
import cn.com.taurus.mapper.DealRecordMapper;
import cn.com.taurus.service.DealRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhy
 * @createTime 2021-6-3 20:49:18
 * @remark 交易流水Impl层
 * @version 1.0
 */
@Service
public class DealRecordImpl implements DealRecordService {
    @Autowired
    DealRecordMapper dealRecordMapper;
    @Override
    public int buyRecord(DealRecord dealRecord) {
        return dealRecordMapper.buyRecord(dealRecord);
    }

    @Override
    public int buyRecordUpdate(DealRecord dealRecord) {
        return dealRecordMapper.buyRecordUpdate(dealRecord);
    }

    @Override
    public int buyRecordDelete(Integer drId) {
        return dealRecordMapper.buyRecordDelete(drId);
    }

    @Override
    public List<DealRecord> buyRecordSelectAll() {
        return dealRecordMapper.buyRecordSelectAll();
    }

    @Override
    public DealRecord buyRecordSelectOne(Integer drId) {
        return dealRecordMapper.buyRecordSelectOne(drId);
    }

    @Override
    public List<DealRecordWebBean> selectDealRecordByCaId(Integer caId) {
        return dealRecordMapper.selectDealRecordByCaId(caId);
    }

    @Override
    public Integer selectOne(String buyTime,String time){
        return dealRecordMapper.selectOne(buyTime,time);
    }

    @Override
    public List<DealRecordBean> conditionSelectDealRecord(String dmId, String buyTime, String buyShare, String time){
        return dealRecordMapper.conditionSelectDealRecord(dmId,buyTime,buyShare,time);
    }
}
